import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Hall from '@/components/Hall'
import Service from '@/components/Service'
import Personal from '@/components/Personal'
import Article from '@/components/Article'
import Exhibitors from '@/components/Exhibitors'
import Myorder from '@/components/user/Myorder'
import MyCollection from '@/components/user/MyCollection'
import EnterpriseInformation from '@/components/user/EnterpriseInformation'
import AccountManagement from '@/components/user/AccountManagement'
import technicalSupport from '@/components/user/technicalSupport'
import ExitLogin from '@/components/user/ExitLogin'
import Login from '@/components/user/Login'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/Hall',
      name: 'Hall',
      component: Hall
    },
    {
      path: '/Service',
      name: 'Service',
      component: Service
    },
    {
      path: '/Personal',
      name: 'Personal',
      component: Personal
    },
    {
      path: '/Article/:id',
      name: 'Article',
      component: Article
    },
    {
      path: '/Exhibitors/:id',
      name: 'Exhibitors',
      component: Exhibitors
    },
    {
      path: '/Myorder',
      name: 'Myorder',
      component: Myorder
    },
    {
      path: '/MyCollection',
      name: 'MyCollection',
      component: MyCollection
    },
    {
      path: '/EnterpriseInformation',
      name: 'EnterpriseInformation',
      component: EnterpriseInformation
    },
    {
      path: '/AccountManagement',
      name: 'AccountManagement',
      component: AccountManagement
    },
    {
      path: '/technicalSupport',
      name: 'technicalSupport',
      component: technicalSupport
    },
    {
      path: '/ExitLogin',
      name: 'ExitLogin',
      component: ExitLogin
    },
    {
      path: '/Login',
      name: 'Login',
      component: Login
    }
  ]
})
